var app = Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULAppInfo).QueryInterface(Components.interfaces.nsIXULRuntime);
var id = app.ID;
switch(id)
{
case "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}":
name = "firefox";
break;
case "{3550f703-e582-4d05-9a08-453d09bdfdc6}":
name = "thunderbird";
break;
case "{86c18b42-e466-45a9-ae7a-9b95ba6f5640}":
name = "mozilla";
break;
case "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}":
name = "seamonkey";
break;
case "{a463f10c-3994-11da-9945-000d60ca027b}":
name = "flock";
break;
}
} catch(e) {}
return name;
}
function Clipmarks_GetAppVersion() {
var ver = null;
try {
var app = Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULAppInfo).QueryInterface(Components.interfaces.nsIXULRuntime);